package com.chixing.day03_oop;

public class Account {
    private int accNo;
    private String accName;
    private String accPassword;
    private long accTelNo;
    private float accBalance;
    private int accType;

    public int getAccNo() {
        return accNo;
    }

    public void setAccNo(int accNo) {
        this.accNo = accNo;
    }

    public String getAccName() {
        return accName;
    }

    public void setAccName(String accName) {
        this.accName = accName;
    }

    public String getAccPassword() {
        return accPassword;
    }

    public void setAccPassword(String accPassword) {
        this.accPassword = accPassword;
    }

    public long getAccTelNo() {
        return accTelNo;
    }

    public void setAccTelNo(long accTelNo) {
        this.accTelNo = accTelNo;
    }

    public float getAccBalance() {
        return accBalance;
    }

    public void setAccBalance(float accBalance) {
        this.accBalance = accBalance;
    }

    public int getAccType() {
        return accType;
    }

    public void setAccType(int accType) {
        this.accType = accType;
    }
    public void depoist(float money){
        this.accBalance += money;
    }
    public void withdraw(float money){
        this.accBalance -= money;
    }
    public void show(){
        System.out.println(accNo+","+accName+","+accPassword+","+accTelNo+","+accBalance+","+accType);
    }

}
